package com.csy.property.community.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.csy.commons.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjBuilding extends BaseEntity {
    private static final long serialVersionUID = -388898043594458788L;

    /*楼栋id
    * */
    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long buildingId ;

    /*楼栋名称
     * */
    private String buildingName ;

    /*楼栋编码
     * */
    private String buildingCode ;

    /*楼栋面积
     * */
    private double buildingAcreage ;

    /*小区编码
     * */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId ;
    @TableField(exist = false)
    private String communityName ;
    @TableField(exist = false)
    private String communityArea;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityAreaId ;
}
